package com.tmt.fileservice;

import com.tmt.fileservice.exception.FileLoadException;

import java.io.OutputStream;
import java.util.Map;

/**
 * Created by ThreeManTeam on 2017/5/25.
 */
public interface IFileCache {

    void setConfig(Map<String, String> params);

    void load(String filePath, OutputStream out) throws FileLoadException;

    long load(String filePath, long startPos, byte[] data) throws FileLoadException;

    void delete(String filePath);

    long getFileSize(String filePath) throws FileLoadException;

}
